package pack063001.cn;

public class Outer {
    String name="张无忌";
    static String address="西安";

    public void sing(){
        Inner in=new Inner();
        System.out.println(in.age);
    }
    class Inner{
        String name="郭靖";
        int age=20;

        public void eat(){
            System.out.println("eat,,,");
            System.out.println(name+"::"+Outer.address);
        }
    }

    public static void main(String[] args) {
        Outer ou=new Outer();
        Inner in=ou.new Inner();
    }
}

